package com.tedu.day02.oop;
class Name{}
class ReName extends Name{}
public class Instanceof关键字 {
    public static void main(String[] args){
        Name name=new Name();
        System.out.println(name instanceof Name);
        System.out.println(name instanceof ReName);

        Name=name ReName();
        System.out.println(a instanceof Name);
        System.out.println(a instanceof ReName);

    }
}
